package com.dzx.design.structural.decorator.v2;

/**
 * @author dzx
 * @ClassName:
 * @Description:
 * @date 2019年08月01日 15:33:18
 */
public class SausageDecorator extends  AbstractDecorator {
    public SausageDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }

    @Override
    public String getDesc() {
        return super.getDesc()+"加一根香肠";
    }

    @Override
    public int cost() {
        return super.cost()+2;
    }
}
